﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Snowdreamist.Windows
{
    public static class Utility
    {
        public static void InvokeOnUIDispatcher(Delegate action, params object[] args)
        {
            if (action == null)
                throw new ArgumentNullException("action");

#if !SILVERLIGHT
            // for WPF
            System.Windows.Application.Current.Dispatcher.BeginInvoke(action, args);
#else
            // silverlight, use deployment
            //
#endif
        }
    }
}